package odgs.transaction;

import odgs.Directory;
import odgs.ExplorerNode;
import odgs.Transaction;

public class UpdateTransaction extends Transaction
{
	private ExplorerNode	source;
	private String	name;

	public UpdateTransaction(int id)
	{
		super(id);
	}

	@Override
	public String getName()
	{
		return "UpdateTransaction";
	}

	public void setSource(ExplorerNode dir)
	{
		source = dir;
	}

	public void setDestName(String name)
	{
		this.name = name;
	}

	public ExplorerNode getSource()
	{
		return source;
	}

	public String getDestName()
	{
		return name;
	}

	@Override
	public boolean isFileTrans()
	{
		return false;
	}
	
	@Override
	public String toString()
	{
		return "Update : " + source.getName() + " to " + name;
	}
}